08b6cf240ab4e7414688d70cc308b2e150d67a89,jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java,AbstractSlingRepository,login,#Credentials#String#,209
Before Change
try {
log(LogService.LOG_DEBUG, "login: Logging in to workspace '"
+ workspace + "'");
return this.getPoolManager().login(credentials, workspace);
} catch (NoSuchWorkspaceException nswe) {
// if the desired workspace is the default workspace, try to create
// (but not if using the repository-supplied default workspace)
After Change
try {
log(LogService.LOG_DEBUG, "login: Logging in to workspace '"
+ workspace + "'");
Session session = getPoolManager().login(credentials, workspace);
// if the defualt workspace is null, acquire a session from the pool
// and use the workspace used as the new default workspace
if (workspace == null) {
String defaultWorkspace = session.getWorkspace().getName();
log(LogService.LOG_DEBUG, "login: Using " + defaultWorkspace
+ " as the default workspace instead of 'null'");
setDefaultWorkspace(defaultWorkspace);
}
return session;
} catch (NoSuchWorkspaceException nswe) {
// if the desired workspace is the default workspace, try to create